﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Caching;

namespace Gollie.WebCache
{
    public class CacheTimeSpanDependency : CacheDependencyBase
    {
        public int ExpirationPeriod { get; private set; }

        public CacheTimeSpanDependency(int expirationPeriod)
            : base(expirationPeriod)
        {
            this.ExpirationPeriod = expirationPeriod;
        }

		public CacheTimeSpanDependency(int expirationPeriod, string[] dependsOn)
			: base(expirationPeriod, dependsOn)
		{
			this.ExpirationPeriod = expirationPeriod;
		}
    }
}